import request from "@/api/index.js"

// 获取学校
export function getSchoolApi() {
	return request({
		url: "/user/schoolInfo",
		method: "get"
	})
}

// 获取对应学校的系部
export function getDepartmentApi(classId) {
	return request({
		url: "/user/department?classId=" + classId,
		method: "get"
	})
}

// 获取个人认证资料
export function getApproveApi() {
	return request({
		url: "/user/strInfo",
		method: "get"
	})
}

// 提交修改的个人认证资料
export function putApproveApi(data) {
	return request({
		url: "/user/strInfo",
		method: "put",
		data
	})
}
